.class Lcom/netease/newsreader/activity/ShowComments$7;
.super Ljava/lang/Object;
.source "ShowComments.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ShowComments;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ShowComments;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShowComments;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    .line 3290
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/ShowComments$7;)Lcom/netease/newsreader/activity/ShowComments;
    .locals 1
    .parameter

    .prologue
    .line 3290
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v8, 0x1

    const/16 v7, 0x8

    const/4 v6, 0x0

    .line 3295
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$55(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/PopupWindow;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V

    .line 3296
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    iget-object v4, v4, Lcom/netease/newsreader/activity/ShowComments;->menuWindow:Landroid/widget/PopupWindow;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    iget-object v4, v4, Lcom/netease/newsreader/activity/ShowComments;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V

    .line 3298
    :cond_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$0(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/Button;->setVisibility(I)V

    .line 3367
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$53(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3368
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$54(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3369
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$38(Lcom/netease/newsreader/activity/ShowComments;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    if-eqz v4, :cond_1

    .line 3370
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$38(Lcom/netease/newsreader/activity/ShowComments;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments;->access$52(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/EditText;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v5

    invoke-virtual {v4, v5, v6}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 3374
    :cond_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4, v8}, Lcom/netease/newsreader/activity/ShowComments;->access$77(Lcom/netease/newsreader/activity/ShowComments;Z)V

    .line 3376
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v4

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/HashMap;->isEmpty()Z

    move-result v4

    if-eqz v4, :cond_8

    .line 3378
    :cond_2
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$42(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3379
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$24(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3381
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments;->access$7(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/netease/newsreader/util/FileUtils;->readDetailPageData(Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/ShowComments;->access$23(Lcom/netease/newsreader/activity/ShowComments;Ljava/util/HashMap;)V

    .line 3382
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v4

    if-eqz v4, :cond_6

    .line 3383
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v4

    const-string v5, "replyCount"

    invoke-virtual {v4, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_3

    .line 3384
    const/4 v0, 0x0

    .line 3385
    .local v0, c1:I
    const/4 v1, 0x0

    .line 3387
    .local v1, c2:I
    :try_start_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$22(Lcom/netease/newsreader/activity/ShowComments;)Ljava/util/HashMap;

    move-result-object v4

    const-string v5, "replyCount"

    invoke-virtual {v4, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 3388
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$25(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 3393
    :goto_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/ShowComments;->access$26(Lcom/netease/newsreader/activity/ShowComments;Ljava/lang/String;)V

    .line 3396
    .end local v0           #c1:I
    .end local v1           #c2:I
    :cond_3
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$25(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_4

    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$25(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v4

    const-string v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_4

    .line 3397
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$0(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/Button;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments;->access$25(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "\u8ddf\u8d34"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 3399
    :cond_4
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$19(Lcom/netease/newsreader/activity/ShowComments;)Landroid/webkit/WebView;

    move-result-object v4

    sget-object v5, Lcom/netease/newsreader/activity/ShowComments;->newsHtml:Ljava/lang/String;

    invoke-virtual {v4, v5}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 3438
    :cond_5
    :goto_1
    return-void

    .line 3389
    .restart local v0       #c1:I
    .restart local v1       #c2:I
    :catch_0
    move-exception v2

    .line 3391
    .local v2, e:Ljava/lang/NumberFormatException;
    invoke-virtual {v2}, Ljava/lang/NumberFormatException;->printStackTrace()V

    goto :goto_0

    .line 3401
    .end local v0           #c1:I
    .end local v1           #c2:I
    .end local v2           #e:Ljava/lang/NumberFormatException;
    :cond_6
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v4

    if-nez v4, :cond_7

    .line 3402
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    const-string v5, "\u7f51\u7edc\u8fde\u63a5\u9519\u8bef"

    invoke-static {v4, v5, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    .line 3403
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$6(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/ImageView;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3404
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$24(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    .line 3406
    :cond_7
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$5(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/ImageView;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3407
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$6(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/ImageView;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3408
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$78(Lcom/netease/newsreader/activity/ShowComments;)Z

    move-result v4

    if-nez v4, :cond_5

    .line 3409
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4, v8}, Lcom/netease/newsreader/activity/ShowComments;->access$27(Lcom/netease/newsreader/activity/ShowComments;Z)V

    .line 3410
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$7(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v3

    .line 3411
    .local v3, pid:Ljava/lang/String;
    new-instance v4, Lcom/netease/newsreader/activity/ShowComments$7$1;

    invoke-direct {v4, p0, v3}, Lcom/netease/newsreader/activity/ShowComments$7$1;-><init>(Lcom/netease/newsreader/activity/ShowComments$7;Ljava/lang/String;)V

    .line 3428
    invoke-virtual {v4}, Lcom/netease/newsreader/activity/ShowComments$7$1;->start()V

    goto :goto_1

    .line 3434
    .end local v3           #pid:Ljava/lang/String;
    :cond_8
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$7;->this$0:Lcom/netease/newsreader/activity/ShowComments;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$42(Lcom/netease/newsreader/activity/ShowComments;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1
.end method
